<?php 
  $this->load->library('fb_api/facebook', array("appId" => $this->config->item('appId') , "secret" => $this->config->item('secret')));
  if($this->session->userdata('log_with_fb')) {
    $urlLogout = $this->facebook->getLogoutUrl(array('next' => base_url().'login_fb/logout/'));
  } else {
    $urlLogout = site_url('login_fb/logout');
  }
  //echo $this->session->userdata('log_with_fb');
?>
<!--<div class="navbar navbar-inverse navbar-fixed-top bs-docs-nav header">-->
      <div class="container header">
          <button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse" style="z-index:9999">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <div class="row">
              <div class="col-lg-1"><a href="<?php echo site_url()?>" style="margin-left:20px; margin-top:10px; display:inline-block">LOGO</a></div>
              <div class="col-lg-2" style="margin-top:5px"> 
                <div class="input-group">
                  <input type="text" id="txt_search" placeholder="Enter name person" class="form-control">
                  <!--<span class="input-group-btn">
                    <button class="btn btn-default" type="button" onclick="do_search()">Go!</button>
                  </span>-->
                </div><!-- /input-group -->
              </div>
              <div class="col-lg-9">
            <div class="nav-collapse collapse bs-navbar-collapse">
              <ul class="col-lg-9 nav navbar-nav nav-top">
                    <li>
                      <a href="<?php echo site_url('message')?>"><i class="icon-envelope-alt"></i> Message</a>
                    </li>
                    <!-- <li>
                      <a href="<?php echo site_url('notification')?>"><i class="icon-info-sign"></i> Notification</a>
                    </li> -->
                    <li>
                      <a href="<?php echo site_url('setting')?>" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-wrench"></i> Setting</a>
                      <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                        <li><a href="<?php echo site_url('account')?>"> <i class="icon-user"></i> Profile</a></li>
                        <!-- <li><a href="">Avatar</a></li> -->
						<li><a href="<?php echo $urlLogout?>"><i class="icon-chevron-sign-right"></i> Logout</a></li>
                      </ul>
                    </li>
                    <li>
                        <a href="#"><b><i class="icon-user"></i> Hi, <?php echo $this->session->userdata('sess_fullname')?></b></a>
                    </li> 
              </ul>
            </div>
        </div>
        
      </div><!--End row header-->
          </div>
        
    </div>
<!--</div>-->
<script type="text/javascript">
$(document).ready(function($){
  $('#txt_search').keyup(function(e){
    if(e.keyCode == 13)
    {
        do_search();
    }
});
})
</script>